$clr-bg-wrap-color: #f5f5fb !default;
.#{$prefix}-my-app{
  width: 100%;
  height: 100vh;
  min-width: 1024px;
  min-height: 768px;
  // background-color: $clr-bg-wrap-color;
  background: url('../assets/images/course_bg.png') no-repeat center center;
  background-size: cover;
  .#{$prefix}-my-app-container {
    height: calc(100% - 60px);
    .#{$prefix}-my-app-aside {
      height: 100%;

    }
  }
  .#{$prefix}-my-app-main {
    padding: 0;
    // background-color: $clr-bg-page-color;
  }
  .#{$prefix}-c-bread {
    padding-left: 24px;
    height: 32px;
    line-height: 32px;
    background-color: rgba(#ffffff, 0.6);
  }
  .#{$prefix}-my-app-wrap {
    padding: 16px 24px;
    width: 100%;
    min-width: 952px;
    height: calc(100% - 32px);
    box-sizing: border-box;
    overflow-y: auto;
    &.no-bread {
      height: 100%;
    }
    &.not-header-module {
      height: 100%;
      padding: 0;
    }
    .#{$prefix}-my-app-content {
      // background-color: #ffffff;
      height: 100%;
      &__bottom--divider {
        height: 16px;
      }
    }
  }

  .g-table-layout {
    background-color: $clr-bg-wrap-color;
    .g-table-header {
      display: flex;
      justify-content: space-between;
      margin-bottom: 16px;
      &__title {
        font-size: 18px;
        line-height: 26px;
        font-weight: 500;
      }
      &__desc {
        margin-top: 4px;
        font-size: 12px;
        line-height: 20px;
        color: #999999;
      }
      &__extra {
        .el-button {
          border-radius: 8px;
        }
      }
    }

  }

  .g-table-empty {
    width: 100%;
    height: calc(100% - 43px);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .g-table-main {
    padding: 0 20px;
    border-radius: 8px;
    background-color: #ffffff;
    .el-progress-bar {
      padding-right: 55px;
    }
    // .el-button + .el-dropdown {
    //   margin-left: 10px;
    // }
    .el-button + .el-button, .el-button + .el-dropdown {
      position: relative;
      margin-left: 12px;
      &::after {
        position: absolute;
        top: 50%;
        left: -9px;
        transform: translateY(-50%);
        content: '';
        width: 1px;
        height: 12px;
        background-color: #E5E5E5;

      }
    }
  }
  .g-table-top-action__flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0px;
    padding: 16px 0 0;
    &.right {
      justify-content: flex-end;
    }
    * + {
      .el-select, .el-search, .#{$prefix}-search {
        margin-left: 16px;
      }
    }
    .el-input, .el-select, .el-search, .#{$prefix}-search {
      // margin-right: 16px;
      width: 200px;
      .el-input__inner {
        height: 32px;
        line-height: 32px;
      }
      .el-input__suffix {
        line-height: 32px;
      }
    }
    .#{$prefix}-search {
      height: 32px;
    }
    .el-select {
      .el-input__icon {
        line-height: 32px;
      }
      // .el-input__suffix {
      //   top: 4px;
      // }
    }
    .g-table-top-action__left, .g-table-top-action__right {
      display: flex;
      align-items: center;
    }
    .g-table-main-title {
      font-size: 16px;
      line-height: 24px;
      font-weight: bold;
    }
    .g-table-top-action__left--block {
      &.g-table-top-action__left--row {
        margin-bottom: 16px;
      }
    }
    .g-table-top-action__right {
      &.g-table-top-action__right--row {
        margin-bottom: 16px;
      }
      .el-button {
        margin-bottom: 16px;
      }
    }
  }
  .g-table-top-action__flex--br {
    align-items: flex-start;
    .g-table-top-action__left {
      flex-wrap: wrap;
      .g-table-top-action__left--block {
        display: block;
        &.g-table-top-action__left--row {
          margin-bottom: 16px;
        }
      }
    }
  }
  .g-pagination {
    width: 100%;
    height: 70px;
    display: flex;
    justify-content: right;
    align-items: center;
  }
  
  .g-edit-layout {
    background-color: #ffffff;
    // padding: 0 24px;
    .con-inner {
      width: 56vw;
      margin: 0 auto;
    }
    .el-form.is-comfortable {
      .el-form-item__label {
        float: none;
      }
      .el-form-item__content {
        margin-top: 8px;
      }
      .el-input {
        width: 28vw;
      }
    }  
    .edit-content {
      height: calc(100% - 112px);
      overflow-y: auto;
    }
    .action-box {
      display: flex;
      height: 56px;
      padding: 0 16px;
      justify-content: end;
      align-items: center;
      border-top: 1px solid #E2E5E8;
      .el-button {
        border-radius: 8px;
      }
    }
  }

  .g-table-row-btns {
    display: flex;
    .el-upload {
      margin: 0 10px;
    }
  }
  
  .el-form {
    &.is-comfortable {
      .el-form-item {
        margin-bottom: 16px;
        .el-form-item__label {
          line-height: 22px;
          margin-bottom: 8px;
        }
      }
      .el-form-item__content {
        margin-left: 0 !important;
      }
      .el-form-item.is-required .el-form-item__label:before {
        content: '' !important;
        margin-right: 0 !important;
      }

      .el-form-item.is-required .el-form-item__label:after {
        content: '*' !important;
        color: #f56c6c;
        margin-left: 4px;
      }
    }
    :not(.is-comfortable){
      .el-form-item__label {
        line-height: 32px;
      }
    }
    .el-form-item__content {
      line-height: 32px;
    }
    .el-input__inner, .el-textarea__inner {
      background: #F7F7F7;
    }
    &.is-normal {
      .el-form-item__label {
        line-height: 32px;
      }
    }
  }

  .g-dialog {
    .el-dialog {
      border-radius: 6px;
    }
    .el-dialog__header {
      padding: 16px 24px;
      border-bottom: 1px solid #EBEDEF;
      .el-dialog__title {
        font-size: 18px;
        font-weight: 500;
        color: #1F1F1F;
      }
    }
    .el-dialog__body {
      padding: 16px 24px 0;
    }
    .el-dialog__footer {
      border-top: none;
      padding: 16px 24px;
      text-align: right;
    }
    .el-dialog__headerbtn {
      font-size: 15px;
    }
  }
  
  .g-editor {
    position: relative;
    z-index: 0 !important;
    .w-e-toolbar .w-e-menu {
      width: 40px;
      height: 40px;
    }
    .w-e-text-container {
      // height: 185px !important;
      resize: both; /* 允许横向和纵向拖拽调整 */
      // overflow: auto; /* 确保内容溢出时显示滚动条 */
      max-width: 100%;
      min-width: 100%;
      // min-height: 225px !important; /* 设置最小高度，避免拖拽得过小 */
      background-color: #F7F7F7;
    }
  }
}
.#{$prefix}-c-table-dropdown {
  .el-dropdown-menu__item {
    line-height: 32px;
    padding: 0 20px;
    font-size: 14px;
  }
}
